cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
project(x3manager)

if(WIN32)
    add_definitions(-DAFID_EXPORTS)
endif()

file(GLOB_RECURSE SRCS *.h *.cpp)
# if(WIN32)
#     list(APPEND   SRCS src/x3manager.rc)
# endif()

include_directories(
    ${INC_PATH}/x3py
    api
    src
    )

if(WIN32)
    add_definitions(
        )
endif()

add_library(x3manager SHARED ${SRCS})
add_custom_command(TARGET x3manager POST_BUILD
    # COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:x3manager> ${PLUGINS_PATH}/$<TARGET_FILE_NAME:x3manager>
    COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:x3manager> ${PLUGINS_PATH})
